#ifndef HISTORY_H
#define HISTORY_H

#include <QDialog>
#include <QWidget>
#include <QDebug>
#include <QString>
#include <QStringList>
#include <QByteArray>
#include <QCoreApplication>
#include <QDateTime>

#include <QJsonArray>
#include <QJsonValue>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonParseError>
#include "mqtt/qmqtt.h"
#include "GlobalVal.h"
#include "setwig.h"

namespace Ui {
class History;
}

class History : public QDialog
{
    Q_OBJECT

public:
    explicit History(QWidget *parent = 0);
    ~History();
    QString name;
    QString kmonth;//开始月份
    QString kday;//开始日
    QString zmonth;//截至月份
    QString zday;//截至日
    QString ks;//开始时间
    QString zs;//截至时间

private:
    Ui::History *ui;

protected:
    void paintEvent(QPaintEvent* event);

private slots:
    void dataUpSlot(QByteArray Array);
    void searchSlot();
};

#endif // HISTORY_H
